package com.lagou.ModelTest2.First;
//Coder继承Person
public class Coder extends Person {
    //无参构造
    public Coder(){}
    //有参构造
    public Coder(String name,int id,int salary){
        super(name,id,salary);
    }
    public void work1(){
        System.out.println("工号为"+getId()+"基本工资为"+getSalary()+"的程序员"+getName()+"正在努力的写着代码......"+"操作步骤描述");
        System.out.println("...");
    }
}
